home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_100 / 163_01 / ferror.c < prev    next >
Text File  |  1988-01-30  |  384b  |  10 lines

  1. /*
  2. ** test for error on stream
  3. */
  4. #define FILE int
  5. #include "streamio.h"
  6.  
  7. ferror(stream) FILE *stream; {
  8.   return ((stream[_IOB_FLAG] & _ERR) != 0);
  9.   }
  10.